﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IceCream
{
    public class WuLiaoIceSel
    {
        private static WuLiaoIceSel instance;
        private WuLiaoIceSel() { }
        public static WuLiaoIceSel Instance
        {
            get
            {
                if (instance == null)
                {
                    instance = new WuLiaoIceSel();
                }
                return instance;
            }
        }
        /// <summary>
        /// 冰淇淋物料
        /// </summary>
        public bool IsICeMaterial { get; set; } = false;
        /// <summary>
        /// 冰淇淋冻杠
        /// </summary>
        public bool IsIceDongGang { get; set; } = false;
        /// <summary>
        /// 奶茶1物料
        /// </summary>
        public bool IsMilk1Material { get; set; } = false;
        /// <summary>
        /// 奶茶2物料
        /// </summary>
        public bool IsMilk2Material { get; set; } = false;
        /// <summary>
        /// 奶茶3物料
        /// </summary>
        public bool IsMilk3Material { get; set; } = false;
        /// <summary>
        /// 奶茶4物料
        /// </summary>
        public bool IsMilk4Material { get; set; } = false;
        /// <summary>
        /// 奶茶5物料
        /// </summary>
        public bool IsMilk5Material { get; set; } = false;
        /// <summary>
        /// 奶茶6物料
        /// </summary>
        public bool IsMilk6Material { get; set; } = false;
        /// <summary>
        /// 泡茶物料
        /// </summary>
        public bool IsPaoChaMaterial { get; set; } = false;
        /// <summary>
        /// 冰淇淋出餐
        /// </summary>
        public bool IsIceChuCan { get; set; } = false;
        /// <summary>
        /// 奶茶出餐
        /// </summary>
        public bool IsMilkChuCan { get; set; } = false;
    }
    public class WuLiaoCoffeeSel
    {
        private static WuLiaoCoffeeSel instance;
        private WuLiaoCoffeeSel() { }
        public static WuLiaoCoffeeSel Instance
        {
            get
            {
                if (instance == null)
                {
                    instance = new WuLiaoCoffeeSel();
                }
                return instance;
            }
        }
        /// <summary>
        /// 水检测
        /// </summary>
        public bool IsWater { get; set; } = false;
        /// <summary>
        /// 奶检测
        /// </summary>
        public bool IsMilk { get; set; } = false;
        /// <summary>
        /// 咖啡豆检测
        /// </summary>
        public bool IsCoffee { get; set; } = false;
        /// <summary>
        /// 出餐检查
        /// </summary>
        public bool IsChucan { get; set; } = false;

    }
    public class MessageClientList
    {
        private static MessageClientList instance;
        private MessageClientList() { }
        public static MessageClientList Instance
        {
            get
            {
                if (instance == null)
                {
                    instance = new MessageClientList();
                }
                return instance;
            }
        }
        /// <summary>
        /// 触发事件名   /// Reload_L  Reload_R
        /// </summary>
        public string Name { get; set; } = "";
        /// <summary>
        /// 状态  0 关状态  1 开状态 2 已开机 3 上电 4 下电 5 已使能 6 下使能 7 已运行 8 继续运行 9 已报警 10 已暂停  11已停止 ,12 机械臂状态查询
        /// </summary>
        public int type { get; set; } = 0;
    }
    public class RobotMsg
    {
        private static RobotMsg instance;
        private RobotMsg() { }
        public static RobotMsg Instance
        {
            get
            {
                if (instance == null)
                {
                    instance = new RobotMsg();
                }
                return instance;
            }
        }
        /// <summary>
        /// 已开机
        /// </summary>
        public bool Robot_YKJ_L { get; set; } = false;
        /// <summary>
        /// 已上电
        /// </summary>
        public bool Robot_SD_L { get; set; } = false;
        /// <summary>
        /// 已使能
        /// </summary>
        public bool Robot_SN_L { get; set; } = false;
        /// <summary>
        /// 已运行
        /// </summary>
        public bool Robot_YX_L { get; set; } = false;
        /// <summary>
        /// 已暂停
        /// </summary>
        public bool Robot_ZT_L { get; set; } = false;
        /// <summary>
        /// 已报警
        /// </summary>
        public bool Robot_BJ_L { get; set; } = false;
        /// <summary>
        /// 已停止
        /// </summary>
        public bool Robot_TZ_L { get; set; } = false;
        /// <summary>
        /// 已开机
        /// </summary>
        public bool Robot_YKJ_R { get; set; } = false;
        /// <summary>
        /// 已上电
        /// </summary>
        public bool Robot_SD_R { get; set; } = false;
        /// <summary>
        /// 已使能
        /// </summary>
        public bool Robot_SN_R { get; set; } = false;
        /// <summary>
        /// 已运行
        /// </summary>
        public bool Robot_YX_R { get; set; } = false;
        /// <summary>
        /// 已暂停
        /// </summary>
        public bool Robot_ZT_R { get; set; } = false;
        /// <summary>
        /// 已报警
        /// </summary>
        public bool Robot_BJ_R { get; set; } = false;
        /// <summary>
        /// 已停止
        /// </summary>
        public bool Robot_TZ_R { get; set; } = false;
    }
    public class ClientList
    {
        public MessageClientList message { get; set; } = MessageClientList.Instance;
        public WuLiaoCoffeeSel MsgBol { get; set; } = WuLiaoCoffeeSel.Instance;
        public WuLiaoIceSel MsgIceBol { get; set; } = WuLiaoIceSel.Instance;
        public RobotMsg robotMsg { get; set; } = RobotMsg.Instance;
        /// <summary>
        /// 状态 0 单状态  1 冰淇淋状态  2 咖啡状态 ,3 机器人状态 ，4 咖啡机，5 冰淇淋   99 连接状态
        /// </summary>
        public int code { get; set; } = 0;
        /// <summary>
        /// 机器是否在制作中
        /// </summary>
        public bool IsMake { get; set; } = false;
    }
}
